const getters = {
    // 计算属性 方便调用
    token: state => state.userStore.token, // 返回用户token
    menus: state => state.userStore.menus, // 返回用户路由列表权限
    isLogin: state => state.userStore.isLogin, // 返回用户是否已经登录 
    name: state => state.userStore.userInfo.username, // 用户名称
    userId: state => state.userStore.userInfo.userId, // 用户id
    companyId: state => state.userStore.userInfo.companyId // 公司 ID
}
export default getters
